package com.zhiyou.app.pojo.vo;

import com.zhiyou.app.pojo.entity.OrderEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Accessors(chain = true)
@Data
@ApiModel(value = "预支付请求参数")
public class PreOrder4PayRequestVo {
    @ApiModelProperty(value = "订单编号")
    @NotEmpty(message = "订单编号不能为空")
    private String orderNum;
    @ApiModelProperty(value = "商品编码")
    @NotEmpty(message = "商品编码不能为空")
    private List<String> goodsCode;
    @ApiModelProperty(value = "支付金额")
    @NotNull(message = "支付金额不能为空")
    private Integer payAmount;
    @ApiModelProperty(hidden = true)
    private OrderEntity order;
    @ApiModelProperty(hidden = true)
    private String clientIP;
}
